package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.io.Serializable;

/**
 * @Author: yhr
 * @Date: 2021-12-16 15:43
 */
@Data
public class FeedbackSaveReq implements Serializable {
    @ApiModelProperty(value = "订单编号")
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;
    @ApiModelProperty("反馈问题id")
    @NotNull(message = "问题id不能为空")
    @Min(value = 0,message = "问题id不能小于1")
    private Long questionId;
    @ApiModelProperty("描述")
    @Size(max = 500,message = "描述不可超过500个字符")
    @Pattern(regexp = "^$|[\\u4e00-\\u9fa5a-zA-Z0-9_!@#$%^&*?.,:;，。！？]{0,}", message = "描述不能输入特殊字符")
    private String questionContent;
}
